<?php
require_once('libraryfiles/config.php');
$content = 'pharmacydetail.php';
$include='<link rel="stylesheet" type="text/css" href="css/simple.css">
';
$phar_id = isset($_GET['pharmacy_id'])?$_GET['pharmacy_id']:'';
require_once TMP_USER_PATH;
?>
<?php
	$select = mysql_query("SELECT * FROM tblpharmacy WHERE pharmacy_id = $phar_id");
?>
<div class="title">Pharmacy Details</div>
<table style="padding-top:20px; width:100%;">
	<?php $data=mysql_fetch_assoc($select);?>
	<tr>
    	<td width="30%">
			<?php if($data['pharmacy_image']!=""){?>
        <img src="<?php echo W_ROOT;?>/upload/<?php echo $data['pharmacy_image'];?>"/>
             <?php 
            }else{
            ?>
            <img src="<?php echo W_S_IMAGES_DIR;?>no-image-small.png" />
            <?php } ?>
            
        </td>
        <td width="70%" style="padding-left:10px">
        	<div class="pharmacy_name">
            	<strong><?php echo $data['pharmacy_name']; ?></strong>
            </div>
            <div style="line-height:20px;">
        		<div style="float:left">Address:&nbsp;</div>
            	<div><?php echo $data['address']; ?></div>
            </div>
            <div style="line-height:20px;">
            	<div style="float:left">Tel:&nbsp;</div>
                <div>
                    <?php echo $data['phone']; ?>&nbsp;/&nbsp;Fax:&nbsp;<?php echo $data['fax'] ?>
                </div>
            </div>
            <div style="line-height:20px;">
            	<div style="float:left">Email:&nbsp;</div>
            	<div><?php echo $data['email']; ?></div>
            </div>
            <div style="line-height:20px;">
            	<div style="float:left">Website:&nbsp;</div>
            	<div><?php echo $data['website']; ?></div>
            </div>
            <div style="line-height:20px;">
            	<div style="float:left">Open Hour:&nbsp;</div>
            	<div><?php echo $data['open_hour']; ?></div>
            </div>
            <div style="line-height:20px;">
            	<div style="float:left">Close Hour:&nbsp;</div>
            	<div><?php echo $data['close_hour']; ?></div>
            </div>
            <div style="line-height:20px;">
            	<div style="float:left">License:&nbsp;</div>
            	<div><?php echo $data['license']; ?></div>
            </div>
      
        </td>
    </tr>
</table>